x86/mce: always re-initialize 'severity_cpu' in mcheck_cmn_handler()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Fri, 7 Apr 2017 13:56:09 +0000 (15:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Apr 2017 13:56:09 +0000 (15:56 +0200)
commit6a2c6a68423475cd89a8cc9978554880e5a21b7d
tree465a227ba60e28593ad9eeda8c4d5f4bc4a9053c
parent011899a2e00b9f748c04d501c205da04bbff4359
x86/mce: always re-initialize 'severity_cpu' in mcheck_cmn_handler()

mcheck_cmn_handler() does not always set 'severity_cpu' to override
its value taken from previous rounds of MC handling, which will
interfere the current round of MC handling. Always re-initialize it to
clear the historical value.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/mce.c